﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Style x:Key="ButtonNotification" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="55" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Canvas Grid.Column="0"
                                Width="51.583"
                                Height="36.750">
                            <Canvas>
                                <Path Data="F1 M 3.810,25.893 L 3.810,27.416 L 25.904,27.416 L 25.904,25.893 L 3.810,25.893 Z M 3.810,21.321 L 3.810,22.845 L 20.571,22.845 L 20.571,21.321 L 3.810,21.321 Z M 3.810,16.750 L 3.810,18.273 L 25.904,18.273 L 25.904,16.750 L 3.810,16.750 Z M 2.286,11.416 L 29.714,11.416 C 30.977,11.416 32.000,12.439 32.000,13.702 L 32.000,30.464 C 32.000,31.726 30.977,32.749 29.714,32.749 L 2.286,32.749 C 1.023,32.749 0.000,31.726 0.000,30.464 L 0.000,13.702 C 0.000,12.439 1.023,11.416 2.286,11.416 Z" Fill="#ffffffff" />
                            </Canvas>
                            <Canvas>
                                <Path Data="F1 M 43.250,12.709 C 43.250,19.728 37.562,25.417 30.542,25.417 C 23.524,25.417 17.834,19.728 17.834,12.709 C 17.834,5.689 23.524,0.000 30.542,0.000 C 37.562,0.000 43.250,5.689 43.250,12.709 Z" Fill="{DynamicResource ColorThemeBrush}" />
                                <TextBlock Canvas.Left="26.084"
                                           Canvas.Top="1.242"
                                           HorizontalAlignment="Center"
                                           VerticalAlignment="Center"
                                           FontSize="16"
                                           FontWeight="SemiBold"
                                           Foreground="White"
                                           Text="{Binding Path=Content,
                                                          RelativeSource={RelativeSource TemplatedParent}}" />
                            </Canvas>
                        </Canvas>
                        <TextBlock x:Name="text"
                                   Grid.Column="1"
                                   Margin="5,0,0,0"
                                   VerticalAlignment="Center"
                                   FontSize="12"
                                   Foreground="{DynamicResource ColorTextBarreMenuEtatBrush}"
                                   Text="{Binding Path=Content,
                                                  RelativeSource={RelativeSource TemplatedParent},
                                                  Converter={StaticResource PluralizeNotificationConverter}}" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="text" Property="TextBlock.TextDecorations" Value="Underline" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="text" Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonAppBarColorTheme" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <TextBlock x:Name="text"
                               VerticalAlignment="Center"
                               FontSize="12"
                               Foreground="{DynamicResource ColorThemeBrush}"
                               Text="{TemplateBinding Content}" />
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="text" Property="TextBlock.TextDecorations" Value="Underline" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="text" Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonAppBarColorThemeWithCanVisibility" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <TextBlock x:Name="text"
                               VerticalAlignment="Center"
                               FontSize="12"
                               Foreground="{DynamicResource ColorThemeBrush}"
                               Text="{TemplateBinding Content}" />
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="text" Property="TextBlock.TextDecorations" Value="Underline" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="text" Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonAppBarForItem" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <TextBlock x:Name="text"
                               VerticalAlignment="Center"
                               FontSize="12"
                               Foreground="White"
                               Text="{TemplateBinding Content}" />
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="text" Property="TextBlock.TextDecorations" Value="Underline" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="text" Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonAccueil" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Viewbox Width="25.767" Height="22.669">
                        <Canvas Width="25.767" Height="22.669">
                            <Canvas>
                                <Canvas>
                                    <Path x:Name="path"
                                          Data="F1 M 12.829,0.003 C 12.720,0.015 12.619,0.064 12.542,0.142 L 0.140,12.545 C -0.048,12.734 -0.046,13.040 0.143,13.228 C 0.233,13.316 0.354,13.366 0.480,13.367 L 3.101,13.367 L 3.101,22.188 C 3.102,22.453 3.316,22.667 3.582,22.669 L 6.845,22.669 L 11.333,22.669 L 14.434,22.669 L 19.038,22.669 L 22.185,22.669 C 22.451,22.667 22.665,22.453 22.667,22.188 L 22.667,13.367 L 25.286,13.367 C 25.552,13.366 25.767,13.149 25.767,12.882 C 25.766,12.756 25.716,12.635 25.627,12.545 L 22.604,9.522 L 22.604,5.382 C 22.603,5.117 22.388,4.903 22.124,4.902 L 20.077,4.902 C 19.812,4.903 19.597,5.117 19.596,5.382 L 19.596,6.514 L 13.225,0.142 C 13.121,0.038 12.975,-0.013 12.829,0.003 Z"
                                          Fill="{DynamicResource ColorThemeBrush}" />
                                </Canvas>
                            </Canvas>
                        </Canvas>
                    </Viewbox>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="path" Property="Fill" Value="{DynamicResource BrushForegroundOverButtons}" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="path" Property="Fill" Value="{DynamicResource BrushBackgroundOverButtons}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonMenu" TargetType="{x:Type ToggleButton}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Margin" Value="0,0,1,0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="1" />
                        </Grid.ColumnDefinitions>
                        <Border x:Name="Border"
                                Grid.Column="0"
                                Height="50"
                                VerticalAlignment="Top"
                                Background="{DynamicResource ColorBackButtonMenuBrush}"
                                Padding="30,0,30,0">
                            <TextBlock x:Name="Text"
                                       VerticalAlignment="Center"
                                       FontFamily="Segoe UI"
                                       FontSize="14pt"
                                       FontWeight="Light"
                                       Foreground="{DynamicResource CaptionButtonColor}"
                                       Text="{TemplateBinding Content}" />
                        </Border>
                        <Rectangle Grid.Column="1"
                                   Width="1"
                                   Fill="{DynamicResource ColorSeparationButtonBrush}" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Text" Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Text" Property="Foreground" Value="{StaticResource BrushForegroundPressedButtons}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Text" Property="Foreground" Value="#FFd1d1d1" />
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="Text" Property="Foreground" Value="{DynamicResource CaptionButtonColor}" />
                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource CheckedButtonMenuBrush}" />
                            <Setter TargetName="Border" Property="BorderThickness" Value="0,0,0,3" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ColorThemeBrush}" />
                            <Setter Property="IsEnabled" Value="False" />
                        </Trigger>
                        <Trigger Property="IsChecked" Value="False">
                            <Setter Property="IsEnabled" Value="True" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonSearch" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="Foreground" Value="#FFffffff" />
        <Setter Property="Background" Value="{DynamicResource ColorThemeLightBrush}" />
        <Setter Property="Width" Value="40" />
        <Setter Property="Height" Value="30" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border"
                            Width="{Binding Width,
                                            RelativeSource={RelativeSource TemplatedParent}}"
                            Height="{Binding Height,
                                             RelativeSource={RelativeSource TemplatedParent}}"
                            Background="{Binding Background,
                                                 RelativeSource={RelativeSource TemplatedParent}}"
                            BorderBrush="White"
                            BorderThickness="0">
                        <Path x:Name="Path"
                              Width="13.403"
                              Height="13.403"
                              Data="F1 M 348.978,252.582C 348.978,250.575 350.605,248.948 352.611,248.948C 354.618,248.948 356.406,250.737 356.406,252.743C 356.406,254.75 354.779,256.377 352.772,256.377C 350.767,256.377 348.978,254.589 348.978,252.582 Z M 360.464,258.673L 357.259,255.467C 357.743,254.673 358.021,253.741 358.021,252.743C 358.021,249.845 355.51,247.334 352.611,247.334C 349.713,247.334 347.363,249.683 347.363,252.582C 347.363,255.48 349.874,257.991 352.772,257.991C 353.736,257.991 354.638,257.73 355.415,257.277L 358.639,260.5C 358.953,260.816 359.465,260.816 359.78,260.5L 360.579,259.701C 360.895,259.385 360.78,258.988 360.464,258.673 Z "
                              Fill="{Binding Foreground,
                                             RelativeSource={RelativeSource TemplatedParent}}"
                              Stretch="Fill" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Foreground" Value="{StaticResource BrushForegroundPressedButtons}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ButtonSearchDetails" TargetType="{x:Type ToggleButton}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="Foreground" Value="#FFffffff" />
        <Setter Property="Background" Value="{DynamicResource ColorThemeBrush}" />
        <Setter Property="Width" Value="20" />
        <Setter Property="Height" Value="30" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="Border"
                            Width="{Binding Width,
                                            RelativeSource={RelativeSource TemplatedParent}}"
                            Height="{Binding Height,
                                             RelativeSource={RelativeSource TemplatedParent}}"
                            Background="{Binding Background,
                                                 RelativeSource={RelativeSource TemplatedParent}}"
                            BorderBrush="White"
                            BorderThickness="0"
                            CornerRadius="{DynamicResource CornerRadiusRightSize}">
                        <Canvas Width="8.125" Height="5.281">
                            <Canvas>
                                <Path Data="F1 M 3.860,5.281 L 0.000,0.000 L 8.125,0.000" Fill="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}" />
                            </Canvas>
                        </Canvas>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Foreground" Value="{StaticResource BrushForegroundPressedButtons}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ButtonDelete" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="Foreground" Value="{DynamicResource CaptionButtonColor}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border"
                            Height="22"
                            Background="Transparent"
                            BorderBrush="White"
                            BorderThickness="0">
                        <Viewbox Width="19.000" Height="19.000">
                            <Canvas Width="19.000" Height="19.000">

                                <Canvas>
                                    <Path Data="F1 M 14.198,12.521 L 12.520,14.199 L 9.500,11.180 L 6.480,14.198 L 4.801,12.520 L 7.820,9.500 L 4.801,6.480 L 6.480,4.801 L 9.500,7.820 L 12.521,4.801 L 14.199,6.480 L 11.180,9.500 L 14.198,12.521 Z M 9.500,0.000 C 4.254,0.000 0.000,4.254 0.000,9.500 C 0.000,14.746 4.254,19.000 9.500,19.000 C 14.746,19.000 19.000,14.746 19.000,9.500 C 19.000,4.254 14.746,0.000 9.500,0.000 Z" Fill="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}" />
                                </Canvas>
                            </Canvas>
                        </Viewbox>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{StaticResource BrushForegroundOverButtons}" />
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Foreground" Value="{StaticResource BrushForegroundPressedButtons}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ListItemMenu" TargetType="{x:Type ListBoxItem}">
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <ToggleButton Command="{Binding CommandToRun}"
                                  CommandParameter="{Binding ParameterCommand}"
                                  Content="{Binding Libelle}"
                                  IsChecked="{Binding IsSelected,
                                                      Mode=TwoWay,
                                                      RelativeSource={RelativeSource FindAncestor,
                                                                                     AncestorType={x:Type ListBoxItem}}}"
                                  Style="{StaticResource ButtonMenu}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="BorderThickness" Value="0" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ListMenu" TargetType="{x:Type ListBox}">
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel IsItemsHost="True" Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle" Value="{StaticResource ListItemMenu}" />
    </Style>

    <Style x:Key="StyleMessageBarreEtat" TargetType="{x:Type TextBlock}">
        <Setter Property="Foreground" Value="{DynamicResource ColorTextBarreMenuEtatBrush}" />
    </Style>

    <SolidColorBrush x:Key="BrushIconBarreMessage" Color="{DynamicResource ColorTextBarreMenuEtat}" />

    <Style x:Key="ButtonCloseChildWindowStyle" TargetType="{x:Type Button}">
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Viewbox Width="11.000" Height="11.000">
                        <Canvas Width="11.000" Height="11.000">
                            <Canvas>
                                <Path Data="F1 M 1.650,0.000 L 5.501,3.851 L 9.351,0.000 L 11.000,1.650 L 7.150,5.500 L 11.000,9.351 L 9.351,11.000 L 5.501,7.149 L 1.650,11.000 L 0.000,9.351 L 3.851,5.500 L 0.000,1.650 L 1.650,0.000 Z" Fill="#ffbec5cc" />

                            </Canvas>
                        </Canvas>
                    </Viewbox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>